
export class UserModel {
    /**
     * 玩家的昵称
     */
    private _nickname: string = '';
    get nickname(): string {
        return this._nickname;
    }

    /**
     * 玩家的userId
     */
    private _userId: number = 0;
    get userId(): number {
        return this._userId;
    }


    /**
     * 设置玩家基础信息
     * @param userid 
     * @param nickname 
     */
    saveUserBaseInfo(userid: number, nickname: string) {
        this._userId = userid;
        this._nickname = nickname;
    }


}


